MCGetMenuString
If your application has a non-standard Edit menu, you can use theMCGetMenuString
function together with theMCGetControllerInfo
function to assign names correctly to the items in your application's Edit menu.
pascal ComponentResult MCGetMenuString (MovieController mc, long modifiers, short item, Str255 aString);
mc
- Specifies the movie controller for this operation. You obtain this identifier from the Component Manager's
OpenComponent
orOpenDefaultComponent
function, or from theNewMovieController
function.modifiers
- Indicates the current modifiers from the mouse-down or key-down event to which you are responding.
item
- Contains one of the appropriate movie controller Edit menu constants returned in the
aString
parameter.aString
- Contains (on return) an appropriate string to set the menu item text. The following flags are available:
mcMenuUndo
- Contains the string to set the menu item text to the Undo command.
mcMenuCut
- Contains the string to set the menu item text to the Cut command.
mcMenuCopy
- Contains the string to set the menu item text to the Copy command.
mcMenuPaste
- Contains the string to set the menu item text to the Paste command.
mcMenuClear
- Contains the string to set the menu item text to the Clear command.
DESCRIPTION
TheMCGetMenuString
function is used by theMCSetUpEditMenu
function, which is described in the previous section.SEE ALSO
To highlight menu items, use theMCGetControllerInfo
function, which is described on page 2-48, to determine which items should be enabled.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help